namespace Cfg
{
    public class ValidationError
    {
        /// <summary>
        /// Config file key
        /// </summary>
        public string Key { get; private set; }

        /// <summary>
        /// Validation error message
        /// </summary>
        public string Error { get; private set; }

        internal ValidationError(string key, string errorFormat, params object[] args)
        {
            Key = key;
            Error = string.Format(errorFormat, args);
        }
    }
}